package com.tfh.strategy;

import java.math.BigDecimal;
import java.util.Objects;

public class Cup {
    public BigDecimal capacity;
    public BigDecimal contains;

    public Cup(BigDecimal capacity){
        this.capacity = capacity;
        this.contains = BigDecimal.ZERO;
    }
    public boolean isEmpty(){
        return Objects.equals(contains, BigDecimal.ZERO);
    }
    public boolean isFull(){
        return Objects.equals(contains, capacity);
    }
    public void setContains(BigDecimal value){
        this.contains = value;
    }
}
